package com.zhima.util;

/**
 * @author : zhima
 * @date : 2023-09-12 16:58
 **/
public class ScoreUtil {
    // 默认100分为满分，后续会根据用户的配置而更新
    public static final int FULL_MARK = 100;

    public static int getScore(int index, int total) {
        int a = FULL_MARK / total;
        int b = FULL_MARK % total;
        if (b == 0) {
            return a;
        }
        if (index == total - 1) {
            return a + b;
        }
        return a;
    }
}
